/*
*   @Author: 1296
*   @Date: 2025-03-11
*   @Description: 404页面
*/

<template>
  <div class="not-found-container">
    <div class="not-found-content">
      <div style="
        width: calc(600/1920 * 100vw);
        height: calc(400/1080 * 100vh);
        background: #f0f0f0;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-family: Arial, sans-serif;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        min-width: 300px;
        min-height: 200px;
">
        <h1 style="
        font-size: clamp(4rem, calc(80/1920 * 100vw), 8rem);
        color: #666;
        margin: 0;
">404</h1>
        <p style="
        font-size: clamp(1rem, calc(24/1920 * 100vw), 2rem);
        color: #888;
">Page Not Found</p>
      </div>
      <h1 class="not-found-title">{{ $t('not-found-title') }}</h1>
      <p class="not-found-message">{{ $t('not-found-message') }}</p>
      <router-link class="back-home-button" to="/">{{ $t('back-to-home') }}</router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NotFound',
};
</script>

<style scoped>
.not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f0f0;
  animation: fadeIn 1s ease-in;
}

.not-found-content {
  text-align: center;
  max-width: calc(600/1920 * 100vw);
  padding: calc(20/1920 * 100vw);
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 300px;
}

.not-found-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: calc(10/1920 * 100vw);
}

.not-found-message {
  font-size: 1rem;
  color: #666;
  margin-bottom: calc(20/1920 * 100vw);
}

.back-home-button {
  display: inline-block;
  padding: calc(10/1920 * 100vw) calc(20/1920 * 100vw);
  font-size: 1rem;
  color: #fff;
  background-color: #007bff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
  min-width: 120px;
}
.back-home-button:hover {
  background-color: #0056b3;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
</style>
